package com.bw.module_motorcircle.ui

import com.bw.module_motorcircle.http.MotorApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

/**
 * @author ytx
 * @date 2025-09-25 14:47
 * @description
 */
class MotorCircleRepository @Inject constructor() {
    @Inject
    lateinit var mApi:MotorApi

    /**
     * 获得导航数据
     */
    fun getNavigationItem() = flow {
        kotlinx.coroutines.delay(2000)
        emit(mApi.getNavigationItem())
    }.flowOn(Dispatchers.IO)

}